<div class="row-fluid">
    <div class="span12">
        <div class="tabbable tabbable-custom boxless">
            <div class="tab-content">
                <div class="tab-pane active" id="tab_2">
                    <div class="portlet box green">
                        <div class="portlet-title">
                            <div class="caption"><i class="icon-reorder"></i></div>
                        </div>
                        <div class="portlet-body form">
                            <form id="adtvminfo" class="form-horizontal">
                                <h3 class="form-section">添加页面</h3>
                                <div class="row-fluid">
                                    <div class="span6 ">
                                        <div class="control-group">
                                            <label class="control-label">图片名称</label>
                                            <div class="controls picupload">
                                                <div class="pic_border">
                                                    <input type="text"  name="banner_title"
                                                           class="m-wrap span12">
                                                    <span class="help-block"></span>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>

                                <div class="row-fluid">
                                    <div class="span6 ">
                                        <div class="control-group">
                                            <label class="control-label">上传图片</label>
                                            <div class="controls picupload">
                                                <div class="pic_border">
                                                    <a href="javascript:;" class="file file1">选择文件
                                                        <input type="file" name="file[]" id="file1" onchange="aaaa(this);">
                                                    </a>
                                                    <span class="help-block"></span>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="row-fluid">
                                    <div class="span6 ">
                                        <div class="control-group">
                                            <label class="control-label">预览图</label>
                                             <div class="controls picupload">
                                                <div class="pic_border">
                                                    <div class=" file1_1" id="androimg">
                                                    </div>
                                                </div>
                                             </div>
                                        </div>
                                     </div>
                                </div>
                                <div class="row-fluid">
                                    <div class="span6 ">
                                        <div class="control-group">
                                            <label class="control-label">顺序</label>
                                            <div class="controls picupload">
                                                <input type="text" name="banner_sort" class="m-wrap span12 banner_sort"

                                                       onkeyup="this.value=this.value.replace(/\D/gi,'')" />
                                                <span class="help-block"></span>
                                                <span class="help-block"></span>

                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="row-fluid">
                                    <div class="span6 ">
                                        <div class="control-group">
                                            <label class="control-label">类型</label>
                                            <div class="controls picupload">
                                                <select name="banner_type" class="m-wrap span12 banner_sort" onchange="zzzz(this)">
                                                    <option value="1">内容</option>
                                                    <option value="2">链接</option>
                                                </select>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="row-fluid" id="link" style="display:none;">
                                    <div class="span6 ">
                                        <div class="control-group">
                                            <label class="control-label">链接</label>
                                            <div class="controls picupload">
                                                <input type="text" name="link" class="m-wrap span12 banner_sort"/>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="row-fluid" id="content">
                                    <div class="span6 ">
                                        <div class="control-group">
                                            <label class="control-label">内容</label>
                                            <div class="controls">
                                                <script id="container" name="content" type="text/plain" style="width:850px;height:100%;min-height:400px;">
                                                </script>
                                                <span class="help-block"></span>
                                            </div>
                                        </div>
                                    </div>
                                </div>


                                <div class="form-actions">
                                    <input type="hidden" name="id" value="{$ad['banner_id']?$ad['banner_id']:''}">

                                    <button id="adtvmadd" type="button" class="btn blue"><i class="icon-ok"></i> 确定
                                    </button>
                                    <button id="adtvmout" type="button" class="btn green">返回菜单列表</button>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

